def common_assert(expect, resp):
    """
    功能：参数化断言
    :param expect: 预期结果的字典信息
    :param resp: 响应对象
    :return: None
    """

    # 4. 获取响应内容的json格式
    json_data = resp.json()
    # 5. 断言 预期内容在expect
    assert expect.get('status_code') == resp.status_code
    assert expect.get('success') == json_data.get('success')
    assert expect.get('code') == json_data.get('code')
    assert expect.get('message') in json_data.get('message')